<template>
  <div>
    <div v-if="loginType==='kindergarten'">
      <Kindergarten></Kindergarten>
    </div>
    <div v-if="loginType!=='kindergarten'">
      <AdminStatics></AdminStatics>
    </div>
  </div>
</template>
<script>
  import Cookies from 'js-cookie';
  import Kindergarten from '@/components/views/statics/KindergartenStatics'
  import AdminStatics from '@/components/views/statics/AdminStatics'

  export default {
    name: 'index',
    components: {Kindergarten, AdminStatics},
    data() {
      return {
        loginType: Cookies.getJSON('loginType'),
      };
    },
    methods: {},
    created() {

    },
    mounted() {

    }
  }
</script>
<style scoped>
  .school_infs {
    margin: 10px 0 0 0;
  }

  .title_span {
    display: inline-block;
    width: 6px;
    height: 100%;
    background: #01D18B;
    float: left;
    margin-right: 8px;
  }

  .statistics_box {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
  }

  .details_box {
    width: 100px;
    height: 100px;
    margin: 10px;
    border-radius: 10px;
  }

  .details_title {
    color: #fff;
    border-radius: 10px 10px 0 0;
    height: 36px;
    line-height: 36px;
  }

  .details_value {
    font-size: 40px;
    line-height: 64px;
  }

  .title_font {
    font-size: 20px;
  }

  .teacher_statistics {
    display: flex;
    flex-wrap: wrap;
    height: 180px;
  }

  .of {
    overflow: auto;
  }

  .teacher_sbox {
    font-size: 30px;
    font-weight: bold;
    width: 50%;
    display: flex;
    min-width: 200px;
    align-items: center;
  }

  .statistics_value {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 18px;
    border-radius: 50%
  }

  .echart_box {
    width: 100%;
    height: 220px;
  }

  .echart_div {
    width: 25%;
    height: 220px;
    float: left;
  }

  .more {
    display: inline-block;
    border-radius: 8px;
    width: 60px;
    height: 30px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    background: #2db7f5;
    position: absolute;
    right: 10px;
    cursor: pointer;
  }
</style>
